<?php
    $this->headTitle($this->site_name.' - Reset password');
?>
<script type="text/javascript" src="/js/jquery.validate.js"></script>
<script type="text/javascript">   
$.validator.addMethod('samePassword', 
	    function (value) {
	    	var pass1=$("#password").val();
	    	if (value==pass1)
		    	return true;
	    	else  
	        	return false; 
	    }, 'Password should be the same'); 


	$(document).ready(function(){
	    $("#form").validate({
	      rules: {
        	password: {
		      required: true
		    },
        	password2: {
		      required: true,
		      samePassword: true
			}
	      },
	      messages: {
	        password: {
	          required: "Password can not be empty"
	        },
	        password2: {
		      required: "Password can not be empty"
		    }
	      }
	    });
	});
</script>  

<?php if (!empty($this->error_msg)):?>
<div class="response-msg error ui-corner-all"><?php echo $this->error_msg;?></div>
<?php endif ?>

<div id="dashboard">

<h2>Reset Password</h2>
 


<div align=center style="font-size:13px;margin:20px 0;">
<div style="text-align:left;">Reset your YesUp Admin Account password.</div>


<div style="width:300px;margin:40px 20px;">

        <div style="text-align:left">
        
			<h3>Account Email: <?php echo $this->admin_user_name; ?></h3>

            <form id="form" name="form" method="post">
            	<input type="hidden" name="email" id="email" value="<?php echo  $this->admin_user_name; ?>">
				<dl class="form">
				<dt id="password-label"><label for="password" class="optional">New Password</label></dt>
				<dd id="password-element">
				<input type="password" name="password" id="password" value="" size="32" /></dd>
				<dt id="password2-label"><label for="password2" class="optional">Retype Password</label></dt>
				<dd id="password2-element">
				<input type="password" name="password2" id="password2" value="" size="32" />
				</dd>
				<dt id="submit-label">&#160;</dt>
				<dd id="submit-element">
				<input type="submit" name="submit" id="submit" value="Submit" />
				</dd>
				</dl>

            
            </form>

        </div>
</div>


</div>

</div>
